#!/usr/bin/env python3
# _*_coding:utf-8 _*_
__author__ = "Gao"

import paramiko

transport = paramiko.Transport('192.168.1.101',22)
transport.connect(username='root', password='12345')

sftp = paramiko.SFTPClient.from_transport(transport)
sftp.put('test.py','/tmp/test.py')
transport.close()